package com.huluobo.a2107kotlinshopping.demo

import android.util.Log
import com.huluobo.a2107kotlinshopping.R
import com.huluobo.a2107kotlinshopping.base.BaseMVVMActivity
import com.huluobo.a2107kotlinshopping.databinding.ActivityRoomBinding

class RoomActivity : BaseMVVMActivity<ActivityRoomBinding>() {
    override fun initData() {
        Log.i("TagA", "user:${UserDatabaseUtil.getAppDatabase().getUserDao().queryUser(0)}")
    }

    override fun initView() {
        UserDatabaseUtil.getAppDatabase().getUserDao().insertUser(
            User(0, "LC", 0, "LC")
        )
    }

    override fun getLayoutId(): Int = R.layout.activity_room
}